package com.fourgirls.xiaoxiang.service.Address.Impl;

import com.fourgirls.xiaoxiang.dao.AddressDao.UserAddressMapper;
import com.fourgirls.xiaoxiang.pojo.Address.UserAddressVo;
import com.fourgirls.xiaoxiang.pojo.Address.UserNameAddressVo;
import com.fourgirls.xiaoxiang.service.Address.UserAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserAddressServiceImpl implements UserAddressService {
    @Autowired
    UserAddressMapper userAddressMapper;
//---------------------------------------------------------------查询分割线--------------------------------------------------------
    /**
     * 查询medicine表中的所有数据
     * @return 查询的数据
     */
    @Override
    public List<UserAddressVo> findAllUserAddresss(UserNameAddressVo userNameAddressVo) {
        return userAddressMapper.findAllUserAddresss(userNameAddressVo);
    }
}
